package util

import (
	"github.com/bluele/gcache"
	"svs/global"
)

func NewGCache() gcache.Cache {
	return gcache.New(500).LRU().Build()
}

func ClearAllCache() {
	allCache := global.CACHE.GetALL(true)
	for i, _ := range allCache {
		global.CACHE.Remove(i)
	}
}
